import myAxios from "../MyAxios";
import BaseUrl from "../BaseUrl";
const directorApi = {
    /**
     * 查询导演列表
     * @returns 
     */
   list:(params)=>{
    return myAxios.get(BaseUrl +'movie-directors',params)
   },
   //添加导演
   add:(params) => {
    return myAxios.post(BaseUrl +'movie-director/add',params)
   },
   //搜索框查询
   Search:(params) => {
    return myAxios.post(BaseUrl + 'movie-directors/name',params)
   },
   //删除导演
   delete:(params) => {
    return myAxios.post(BaseUrl + 'movie-director/del',params)
   }
}
export default directorApi;